import Mock from 'mockjs'

const students = [
  {
    key: '0',
    icon: 'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1611373914,2096982023&fm=15&gp=0.jpg',
    subject: '',
    name: '你单独',
    sex: '0',
    tel: '111111111111',
    bind_status: '0',
    bindcode: 'fwetsvarasdasdgs',
    describe: '这娃很好很好很好',//备注
    active: 1//激活状态
  }
]


export default [
  {
    url: '/vue-admin-template/teachers',
    type: 'get',
    response: _ => {
      return {
        code: 20000,
        data: students
      }
    }
  },

  {
    url: '/vue-admin-template/teachers',
    type: 'post',
    response: _ => {
      return {
        code: 20000,
        data: {
          key: Mock.mock('@integer(300, 5000)')
        }
      }
    }
  },
  // update order
  {
    url: '/vue-admin-template/teachers/[A-Za-z0-9]',
    type: 'put',
    response: {
      code: 20000,
      data: {
        status: 'success'
      }
    }
  },

  // delete order
  {
    url: '/vue-admin-template/teachers/[A-Za-z0-9]',
    type: 'delete',
    response: {
      code: 20000,
      data: {
        status: 'success'
      }
    }
  },

]
